import Axios from './config';


// 携带参数请求
export const getTopicsByParams = 
({limit, page, tab}) => 
Axios.get('/api/v1/topics2', {
  params: {limit, page, tab}
}).catch( err=> {
  console.log('自定义捕获 err=>', err);
  // return {message: err.message};
  //Promise.reject 返回一个Promise对象，状态是一个rejected 
  return Promise.reject({message:err.message});
} );